package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.business.entity.TraceScanEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 投入品日志
 *
 * @author maybe
 * @date 2020年7月27日
 */
@Entity
@Table(name = "t_plant_inputs_log")
public class InputsLog extends TraceScanEntity {

    public enum Type {
        IN,        //增加     0
        OUT,    //减少        1
    }

    @Column
    private String inputsId;        //投入品ID

    private String username;        //操作人
    @Column
    private Type type;                //类型
    @Column
    private String number;            //数量

    private String surplusNum;       // 当时剩余量
    @Column
    private String units;            //单位
    @Column
    private String time;            //操作时间



    public String getSurplusNum() {
        return surplusNum;
    }

    public void setSurplusNum(String surplusNum) {
        this.surplusNum = surplusNum;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getInputsId() {
        return inputsId;
    }

    public void setInputsId(String inputsId) {
        this.inputsId = inputsId;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
